﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication4
{
    class Program
    {
        static void Main(string[] args)
        {
            int temp;
            int[] array = {5,4,3,2,1};
            temp = 0;

            for (int i = 0; i < array.Length-1; i++)
            {
                if (array[i] >= array[i+1])
                {
                   temp = array[i];
                }
                Console.WriteLine(array[i]);
            }
            Console.ReadLine();

        }
    }
}
